#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main() {
    int n = 0;
    int a[101];
    int k = 0;
    scanf("%d", &n);
    for (int i = 0; i < n; i++)
    {
        scanf("%d", &a[i]);
    }
    scanf("%d", &k);
    int conut = 0;
    for (int i = 0; i < n; i++)
    {
        if (a[i] == k)
        {
            conut++;
        }
    }
    printf("%d", conut);
    return 0;
}